﻿@{
    ViewBag.Title = "News";
    Layout = "~/Views/Shared/_SecondLayout.cshtml";
}


@section Header
{
    <script type="text/javascript"> 

    </script>
}
<div id="mainbody">
    <div id="mainpic"></div>
    <div id="main_back">
        <div id="left">
            <img src="/img/weixin.gif" />
        </div>
        <div id="main_l">
            <div id="main_m">
                <div id="main">
                    <div id="main-right">
                        <ul>
                            <li>
                                <div class="p_left_title">
                                    <img src="/img/pro_img.gif" />
                                    <div class="p_left_title_word">新闻资讯</div>
                                    <div class="p_left_title_more">&gt;&gt;更多</div>
                                </div>
                            </li>
                            <li>
                                <div id="pagelefttop">
                                    <ul class="pageleft_ul">
                                        @{
                                            IList<NewsInfo> topNews = ViewBag.TopNews;
                                            foreach (NewsInfo item in topNews)
                                            { 
                                            <li>&gt;&nbsp;<a href="/News/ViewNews?id=@item.NewsID">@item.Title</a></li> 
                                            }
                                        }
                                    </ul>
                                </div>
                            </li>
                            <li>
                                <div class="cu_1"></div>
                                <div class="cu_2">
                                    <p>电话：025-84716007 </p>
                                    <p>025-84718399 </p>
                                    <p>传真：025-84702477</p>
                                    <p>Email:jinding2002@163.com</p>
                                </div>
                                <div class="cu_3"></div>

                            </li>
                        </ul>
                    </div>
                    <div id="mainright">
                        <div id="bannerimg">
                            <img src="/img/新闻资讯.jpg" />
                        </div>
                        <div id="position" style="text-align: right; padding: 5px 0;">您当前的位置：<a href="/home/Index/">首页</a>&gt;&gt;<a href="/News/News/">新闻中心</a></div>
                        <div class="mainright_top">
                            <img src="/img/list.gif" />
                            <div class="mainright_top_word">新闻资讯<span>News</span></div>
                        </div>

                        <div id="mainright_body">
                            <ul>
                                @{
                                    IList<NewsInfo> news = ViewData["News"] as List<NewsInfo>;
                                    foreach (NewsInfo item in news)
                                    {
                                    <li><a href="/News/ViewNews?id=@item.NewsID">@item.Title</a><span>@item.AddTime</span></li>
                                    }
                                }
                            </ul>
                            <div id="page_nav">
                                @Html.Pager("pager", ViewData["pager"] as PagerInfo)
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div id="right">
            <img src='/img/ritght.gif' />
        </div>
    </div>

    <div id="footer_m">
        <div id="footer">
            <p><span>地址：南京市山西路67号世界贸易中心大厦A1幢1101室</span><span>邮编：210009 </span><span>电话：025-84716007 025-84718399</span><span> 传真：025-84702477</span></p>
            <p><span>网址：http://www.jsjdgg.com</span><span>Email:jinding2002@163.com</span></p>
            <div>
                苏ICP备09047781 江苏金鼎广告传播有限公司 版权所有 2009-2012
            </div>
        </div>
    </div>
</div>
@*<div>
    @{
        IList<string> newsGroup = ViewBag.NewsGroup;
        foreach (string item in newsGroup)
        { 
        <li><a href="/News/News?group=@item">@item</a></li> 
        }
    }
</div>
<br />*@

@*<div id="NewsDiv">
    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
        @{
            IList<NewsInfo> news = ViewData["News"] as List<NewsInfo>;
            foreach (NewsInfo item in news)
            {
            <tr>
                <td width="500" style="border-bottom: 1px dashed #2894F6;">@Html.ActionLink(item.Title, "ViewNews", new { id = item.NewsID })
                </td>
                <td width="100" style="border-bottom: 1px dashed #2894F6;">@item.NewsGroupName
                </td>
                <td width="100" style="border-bottom: 1px dashed #2894F6;">@item.AddTime
                </td>
            </tr>
            }
        }
    </table>
    <p>
        @Html.Pager("pager", ViewData["pager"] as PagerInfo)
    </p>
</div>*@
